<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>全局function模式</title>
</head>
<body>
<script src="moudle1.js" type="text/javascript"></script>
<script>
    foo()
    data ="xyz"
    foo()
</script>
</body>
</html>